Question: what does it mean when a guy rubs his leg on your leg?
Answer: When a guy is trying to show that is is the leader of a group he will often touch the people around him. The reason that he touched your leg with his could be that he was showing that he was of a higher position in the group.