776. Persons in legal custody.

Any person required or authorised by or by virtue of the Mental Health Act 1983 to be conveyed1 to any place or to be kept in custody or detained in a place of safety2, or at any place to which he is taken by direction3 in the interests of justice or for the purposes of any public inquiry, is, while being so conveyed, detained or kept, as the case may be, deemed to be in legal custody